package com.qys.livesMall.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qys.livesMall.shop.modal.entity.SeckillActivity;
import com.qys.livesMall.shop.modal.query.QuerySeckillActivityApp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gmx
 * @since 2023-07-03
 */
public interface SeckillActivityMapper extends BaseMapper<SeckillActivity> {
    /**
     * 有效活动查询
     * @return
     */
    List<SeckillActivity> validActivity(@Param("data") QuerySeckillActivityApp seckillActivityApp);

    List<SeckillActivity> getByGoodsId(@Param("goodsId") Long goodsId,@Param("shopId") Long shopId);
}
